package Before826.print;

public class Printer {
    private Paper paper;
    private Ink ink;
    private String brand;
    public Printer(String brand){
        this.brand = brand;
    }
    public void print(String word) {
        System.out.println(word);
        System.out.println(brand + "打印机正在用" + ink.getColor() + "墨盒打印" + paper.getSize() +"纸张打印");
    }
    public Paper getPaper() {
        return paper;
    }

    public void setPaper(Paper paper) {
        this.paper = paper;
    }

    public Ink getInk() {
        return ink;
    }

    public void setInk(Ink ink) {
        this.ink = ink;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
}
